const bcrypt = require('bcrypt')
const getPassword = require('../dao/get-password')

async function verify(account, password) {
    let rePassword = await getPassword('account', account)
    return bcrypt.compareSync(password, rePassword)
}

module.exports = verify